package com.wuyangnju.lj.simulation.slave;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class Main {
	private static Log log = LogFactory.getLog(Main.class);

	/**
	 * @param args
	 * @throws InterruptedException
	 */
	public static void main(String[] args) throws InterruptedException {
		SlaveCnf cnf = SlaveArgsParser.parse(args);
		while (true) {
			try {
				SlaveMainThread.run(cnf);
			} catch (Exception e) {
				log.error("unexpected exception, SlaveMainThread rerun.", e);
				continue;
			}
		}
	}
}
